﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace WebApi.Models
{
    /// <summary>
    /// 基础实体类型
    /// </summary>
    public class BaseModel : IBaseModel
    {
        /// <summary>
        /// ObjectId
        /// </summary>
        [BsonId]
        [BsonRepresentation(BsonType.ObjectId)]
        public string Id { get; set; }
    }
}
